<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'CustomButton',
  props: {
    type: {
      type: String as () => 'primary' | 'secondary' | 'default',
      default: 'default'
    },
    disabled: {
      type: Boolean,
      default: false
    }
  },
  emits: ['click']
})
</script>

<template>
  <button class="btn" :class="[type ? `btn-${type}` : '']" :disabled="disabled">
    <slot></slot>
  </button>
</template>
